package com.danskin.wechat.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.danskin.wechat.entity.WxMsgReplyDetail;
import com.danskin.wechat.entity.example.WxMsgReplyDetailExample;
import com.danskin.wechat.util.Page;
import com.danskin.wechat.vo.WxMsgReplyDetailVo;

public interface WxMsgReplyDetailDao {
	
	/**
	 * 分页查询
	 * @param page
	 * @return
	 * @author makunsmac
	 */
	List<WxMsgReplyDetailVo> listPageMsgReplyDetailList(Page page);

	List<WxMsgReplyDetail> listPageReplyDetailList(Page page);

	int countByExample(WxMsgReplyDetailExample example);

	int deleteByExample(WxMsgReplyDetailExample example);

	int deleteByPrimaryKey(@Param("id") int id, @Param("mpId")  int mpId);

	int insert(WxMsgReplyDetail record);

	int insertSelective(WxMsgReplyDetail record);

	List<WxMsgReplyDetail> selectByExample(WxMsgReplyDetailExample example);

	List<WxMsgReplyDetail> selectByReplyType( @Param("mpId")  int mpId,@Param("replyType") String replyType);

	WxMsgReplyDetail selectByKeyword( @Param("mpId")  int mpId,@Param("keyword") String keyword);

	WxMsgReplyDetail selectByPrimaryKey(Integer id);

	WxMsgReplyDetail selectWxMsgReplyDetailById(WxMsgReplyDetail entity);

	int updateByExampleSelective(@Param("record") WxMsgReplyDetail record,
			@Param("example") WxMsgReplyDetailExample example);

	int updateByExample(@Param("record") WxMsgReplyDetail record, @Param("example") WxMsgReplyDetailExample example);

	int updateByPrimaryKeySelective(WxMsgReplyDetail record);

	int updateByPrimaryKey(WxMsgReplyDetail record);
}